package com.company.Serializable;

import java.io.FileInputStream;
import java.io.ObjectInputStream;

public class SerializableTest01 {
    public static void main(String[] args) throws Exception{
        FileInputStream fis = new FileInputStream("object");
        ObjectInputStream ois = new ObjectInputStream(fis);
        Student student2 = (Student) ois.readObject();
        System.out.println(student2.getName()+ " " +
                student2.getPassword() + " " + student2.getSex());
    }
}
